#include "udpClient.hpp"
#include <memory>

void Usage(std::string proc){
    std::cout<<"Usage:\n"<<proc<<" Serverip "<<"Serverport\n"<<std::endl;
}


int main(int argc,char* argv[]){
    if(argc != 3){
        Usage(argv[0]);
        exit(1);
    }
    std::string ip = argv[1];
    uint16_t port = atoi(argv[2]);
    std::unique_ptr<udpClient> p(new udpClient(ip,port));

    p->initClient();
    p->start();

    return 0;
}